package nl.sogyo.puzzlers.domain;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Key;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Solution {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

    @Persistent
	private String solver;
    
    @Persistent
	private String code;
	
	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Solution (String solver, String code)
	{
		this.solver = solver;
		this.code = code;
	}

	public void setSolver(String solver) {
		this.solver = solver;
	}

	public String getSolver() {
		return solver;
	}
}